package org.lanyu.springainovel.chat.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import io.swagger.v3.oas.annotations.media.Schema;

import java.math.BigDecimal;
import java.time.LocalDateTime;

@Schema(name = "知识库")
@Data
@TableName("z_knowledge_base")
public class KnowledgeBase {
    @TableId(value = "id", type = IdType.AUTO)
    @Schema(description = "知识库ID")
    private Long id;
    @Schema(description = "知识库名")
    private String name;

    @Schema(description = "检索阈")
    @TableField("threshold")
    private BigDecimal threshold;

    @Schema(description = "用户id")
    @TableField("create_user_id")
    private Long createUserId;
    @Schema(description = "知识库描")
    private String description;
    @Schema(description = "状态 1正常，2删除，3处理中")
    private Integer status;

    @Schema(description = "索引名称")
    @TableField("vector_index_name")
    private String vectorIndexName;
    
    @Schema(description = "创建时间")
    @TableField("create_time")
    private LocalDateTime createTime;
    
    /**
     * 更新时间
     */
    @TableField("update_time")
    private LocalDateTime updateTime;

    public KnowledgeBase() { super(); }
}
